<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<script type="text/javascript" src="/deng/include/include-css.js"></script>
	<script type="text/javascript" src="/deng/include/inplug-css.js"></script>
	<meta charset="UTF-8">
	<title>岗位编辑页面</title>
</head>
<body>
	<div class="m-portlet">
		<div class="m-portlet__head">
			<div class="m-portlet__head-caption">
				<div class="m-portlet__head-title">
					<span class="m-portlet__head-icon m--hide">
						<i class="la la-gear"></i>
					</span>
					<h3 class="m-portlet__head-text">
						编辑岗位
					</h3>
				</div>
			</div>
		</div>
		<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" id="defaultForm" method="post">
			<div class="m-portlet__body">
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label" jEhcLang="xt_departinfo_name">隶属部门</label>
					<div class="col-md-3">
						<input class="form-control" type="hidden" name="xt_post_id"  placeholder="请输入序列号" id="xt_post_id">
						<input class="form-control" type="hidden" maxlength="32"  data-bv-notempty data-bv-notempty-message="请输入部门编号"  name="xt_departinfo_id" id="xt_departinfo_id" placeholder="请输入部门编号">
						<input class="form-control" type="text" maxlength="32" readonly="readonly" onclick="departSelect();" data-bv-notempty data-bv-notempty-message="请选择隶属部门"  name="xt_departinfo_name" id="xt_departinfo_name" placeholder="请选择隶属部门">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label" jEhcLang="xt_post_parentId">上级岗位</label>
					<div class="col-md-3">
						<input class="form-control" type="hidden" maxlength="32"  name="xt_post_parentId" id="xt_post_parentId" placeholder="请输入上级岗位">
						<input class="form-control" type="text" maxlength="32" onclick="postSelect();" readonly="readonly" value="无" id="xt_post_parentName" placeholder="请选择上级岗位">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label"  jEhcLang="xt_post_name">岗位名称</label>
					<div class="col-md-3">
						<input class="form-control" type="text" maxlength="50"  data-bv-notempty data-bv-notempty-message="请输入" id="xt_post_name" name="xt_post_name" placeholder="请输入" >
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label"  jEhcLang="p_code">编&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</label>
					<div class="col-md-3">
						<input class="form-control" type="text" maxlength="20"  data-bv-notempty data-bv-notempty-message="请输入" id="p_code" name="p_code" placeholder="请输入" >
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label" jEhcLang="xt_post_desc">岗位描述</label>
					<div class="col-md-6">
						<textarea class="form-control" maxlength="200"  name="xt_post_desc" id="xt_post_desc" placeholder="请输入"></textarea>
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label" jEhcLang="xt_post_maxNum">最多人数</label>
					<div class="col-md-3">
						<input class="form-control" maxlength="10" style="width:150px;" data-bv-numeric data-bv-numeric-message="此项为数字类型" id="xt_post_maxNum" name="xt_post_maxNum" placeholder="请输入">
					</div>
				</div>
				<div class="form-group m-form__group row">
					<label class="col-md-1 col-form-label" jEhcLang="xt_post_grade">岗位级别</label>
					<div class="col-md-3">
						<input class="form-control" maxlength="10" style="width:150px;" data-bv-numeric data-bv-numeric-message="岗位级别为数字类型" id="xt_post_grade" name="xt_post_grade" placeholder="请输入">
					</div>
				</div>
			</div>
			<div class="m-portlet__foot m-portlet__no-border m-portlet__foot--fit">
				<div class="m-form__actions m-form__actions--solid">
					<div class="form-group m-form__group row">
						<div class="col m--align-left">
							<a class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" href="javascript:updateXtPost()">保存</a>
							<a class="btn btn-secondary m-btn m-btn--custom m-btn--icon" href="javascript:goback()">返回</a>
						</div>
						<div class="col m--align-right">
							<a class="btn btn-secondary m-btn m-btn--custom m-btn--icon" href="javascript:resetAll('defaultForm')"><span><i class="fa fa-repeat"></i><span>重置</span></span></a>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</body>

<!-- 部门选择器模态框（Modal）开始 -->
<div class="modal fade" id="departSelectModal" tabindex="-1" role="dialog" aria-labelledby="departSelectModalLabel" aria-hidden="true">
	<div class="modal-dialog modal-dialog-centered">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title" id="departSelectModalLabel">
					部门选择器
				</h4>
			</div>
			<div class="modal-body">
				<ul id="tree" class="ztree"></ul>
			</div>
			<div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取 消</button>
                <button type="button" class="btn btn-light-primary font-weight-bold mr-2" onclick="doDepartSelect()">保 存</button>
            </div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
<!-- 部门选择器模态框（Modal）结束 -->

<!-- 岗位选择器模态框（Modal）开始 -->
<div class="modal fade" id="postSelectModal" tabindex="-1" role="dialog" aria-labelledby="postSelectModalLabel" aria-hidden="true">
	<div class="modal-dialog modal-dialog-centered">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title" id="postSelectModalLabel">
					岗位选择器
				</h4>
			</div>
			<div class="modal-body">
				<ul id="posttree" class="ztree"></ul>
			</div>
			<div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取 消</button>
                <button type="button" class="btn btn-light-primary font-weight-bold mr-2" onclick="doPostSelect()">保 存</button>
            </div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
<!-- 岗位选择器模态框（Modal）结束 -->
<script type="text/javascript" src="/deng/include/include.js"></script>
<script type="text/javascript" src="/deng/include/inplug.js"></script>
<script type="text/javascript" src="/deng/view/sys/xt-post/xt-post-update.js"></script>
</html>
